const { request } = require('../axios/axios-main')
const env = 'my-book-assist-7gc4zqa8552557ed'

// 获取所有学习组
exports.getAllGroups = (_data) => {
  const data = {
    env,
    query: `db.collection('groups').limit(999).skip(0).get()`
  }
  return request({
    method: 'POST',
    url: `/tcb/databasequery?access_token=${_data.access_token}`,
    data
  })
}